package com.shop.service.classify;

import com.shop.dao.classify.ClassifyDao;
import com.shop.entity.Image;
import com.shop.entity.classify.Classify;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("ClassifyService")
public class ClassifyServiceImpl implements ClassifyService {
    @Resource
    private ClassifyDao classifyDao;
    @Override
    public List<Classify> queryAll(Classify classify) {
        return classifyDao.queryAll(classify);
    }

    @Override
    public List<Image> queryAllByLimit(int offset, int limit) {
        return classifyDao.queryAllByLimit(offset,limit);
    }

    @Override
    public int deleteById(Integer id) {
        return classifyDao.deleteById(id);
    }

    @Override
    public int getCount() {
        return classifyDao.getCount();
    }
}
